Repository navigation
perf(fs): count folder sizes with one stat per entry on several threads - #268
Merged
Merged
Conversation
iamnitesh108
marked this pull request as ready for review
November 30, 2026 18:04
There was a problem hiding this comment.
Talia preliminary review
| Check | Result |
|---|---|
| Merge score | 🟢 4/5 — No issues found; likely ready after CI and human review |
| Findings | None found |
| Review depth | 3/5 — how thoroughly the changed code could be checked by reading it |
| Coverage | 8 of 8 changed files reviewed |
What Talia checked: Inspected the new parallel walk (per-root device/scope state, per-thread tallies, queue/helper lifecycle, OpenFolder change accounting and member destruction order), its callers (FolderTotalsService, transfer_estimate) and new tests. Concurrency reasoning found no concrete defect; runtime/TSan behavior could not be executed, which is the main residual uncertainty.
Run details
- Commit reviewed: 967d461
- Source lookups: 30 file reads, 28 searches
- Prompt version: 859b7490ca3d
Preliminary automated review: Talia read the changed code and related source; nothing was built, run or tested, and AI can make mistakes. It is not a scope acceptance or a promise to merge; a human reviewer makes the final call. See our ethos.
# Conflicts: # docs/design/architecture.md
Member
|
Looks good, thx. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Folder sizes are counted much faster: a folder with nearly two million items now takes under a second instead of about ten. The results are the same as before.
Motivation
On large folders the size took many seconds to appear and kept one core busy the whole time. Large folders are now counted on a few cores, using about the same total CPU as before. Small folders and network mounts still use one.
Type of Change
Testing
just testpasses exceptsystem-mounts,transfer-serviceandtransfer-service-without-rename-flags, which fail the same way on main.luciole-folder-totals-bench:Checklist
SCOPE.md, or its scope was agreed in an issue or on Discord first.CONTRIBUTING.md.just format, or this PR has no C++ changes.just lintand the relevant build or test commands, or explained why they were not run.just role-alpha-check, or this PR does not change UI colors.docs/, or this PR does not change user-facing behavior or settings.